package com.blindBox.back.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blindBox.back.dao_pojo.User;
import com.blindBox.back.mapper.UserMapper;
import com.blindBox.back.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


    @Autowired
    private UserMapper userMapper;
    @Override
    public Integer getManNums() {
        return userMapper.getManNums();
    }

    @Override
    public Integer getWomanNums() {
        return userMapper.getWomanNums();
    }

    @Override
    public Integer getAllUsersNum() {
        return userMapper.getAllUsersNum();
    }
}
